mcN = "letter";

alphaSpeed = Math.floor((100 - alpha) / ((scale-100)/speed));
positionSpeed = Math.floor(top / ((scale-100)/speed));

aLetters = new Array();

for (i = 0; i< numChar; i++){
  aLetters[i+0] = i;
  var letter =  this[mcN +i];
  letter._visible = false;
  letter.init = letterInit;
  letter.doEffect = effect;
  letter.number = i;
}

function letterInit(){
  this._visible      = true;
  this.speed         = this._parent.speed;
  this._xscale       = this._parent.scale;
  this._alpha        = this._parent.alpha;
  this.alphaSpeed    = this._parent.alphaSpeed;
  this.finalX        = this._x;
  this._x            = this._x + this._parent.top;
  this.positionSpeed = this._parent.positionSpeed;
}

function effect(){
  this._xscale -= this.speed;
  this._alpha  += this.alphaSpeed;
  this._x      -= this.positionSpeed;

  if (this._xscale <= 100){
    this._xscale = 100;
    this._alpha = 100;
    this._x = this.finalX;
    this.gotoAndStop("end");
  }
}

function shuffle(){
  return Math.floor(Math.random() * 3) -1;
}
if (random == 1){
  aLetters.sort(shuffle);
}

if (reverse == 1){
  aLetters.reverse();
}